package com.bike.cloadapp;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.TextView;

import com.bike.c_file.NDKInterface;

public class MainActivity extends AppCompatActivity {

    private NDKInterface mInterface;
    static{
        System.loadLibrary("Print");
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        mInterface = new NDKInterface();


        TextView textView = findViewById(R.id.tv_hello);
        textView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
//                Log.i("MainActivity","打印日志信息！！");
                mInterface.print();
                Log.i("MainActivity","getText  "+  mInterface.getText());
            }
        });
    }
}
